<div class="users view">
<h2><?php echo __('User'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($user['User']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Password'); ?></dt>
		<dd>
			<?php echo h($user['User']['password']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User Group'); ?></dt>
		<dd>
			<?php echo $this->Html->link($user['UserGroup']['name'], array('controller' => 'user_groups', 'action' => 'view', $user['UserGroup']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Full Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['full_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Phone'); ?></dt>
		<dd>
			<?php echo h($user['User']['phone']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Birthday'); ?></dt>
		<dd>
			<?php echo h($user['User']['birthday']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Gender'); ?></dt>
		<dd>
			<?php echo h($user['User']['gender']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Is Delete'); ?></dt>
		<dd>
			<?php echo h($user['User']['is_delete']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List User Groups'), array('controller' => 'user_groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Group'), array('controller' => 'user_groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List System Logs'), array('controller' => 'system_logs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New System Log'), array('controller' => 'system_logs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Page Roles'), array('controller' => 'page_roles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Page Role'), array('controller' => 'page_roles', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related System Logs'); ?></h3>
	<?php if (!empty($user['SystemLog'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Action Name'); ?></th>
		<th><?php echo __('Sql Script'); ?></th>
		<th><?php echo __('Date Created'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['SystemLog'] as $systemLog): ?>
		<tr>
			<td><?php echo $systemLog['id']; ?></td>
			<td><?php echo $systemLog['user_id']; ?></td>
			<td><?php echo $systemLog['action_name']; ?></td>
			<td><?php echo $systemLog['sql_script']; ?></td>
			<td><?php echo $systemLog['date_created']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'system_logs', 'action' => 'view', $systemLog['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'system_logs', 'action' => 'edit', $systemLog['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'system_logs', 'action' => 'delete', $systemLog['id']), null, __('Are you sure you want to delete # %s?', $systemLog['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New System Log'), array('controller' => 'system_logs', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Page Roles'); ?></h3>
	<?php if (!empty($user['PageRole'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Short Url'); ?></th>
		<th><?php echo __('Page Group'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['PageRole'] as $pageRole): ?>
		<tr>
			<td><?php echo $pageRole['id']; ?></td>
			<td><?php echo $pageRole['name']; ?></td>
			<td><?php echo $pageRole['short_url']; ?></td>
			<td><?php echo $pageRole['page_group']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'page_roles', 'action' => 'view', $pageRole['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'page_roles', 'action' => 'edit', $pageRole['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'page_roles', 'action' => 'delete', $pageRole['id']), null, __('Are you sure you want to delete # %s?', $pageRole['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Page Role'), array('controller' => 'page_roles', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
